﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Floor.aspx.cs" Inherits="MallInteractiveMap.CMSWebClient.BasicView.Floor" %>
<%@ Import Namespace="MallInteractiveMap.Language" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style=" width:420px;">
        <asp:UpdatePanel runat="server" ID="up">
            <ContentTemplate>
                <fieldset  class="register">
                    <legend><%= LanguageLoader.GetText("FLOOR_INFORMATION") %></legend>
                    <p>
                        <asp:Label ID="NameLable" runat="server" Text="Name" AssociatedControlID="Name" />
                        <asp:TextBox runat="server" ID="Name" MaxLength="100" CssClass="textEntry" />
                        <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="Name"
                            CssClass="failureNotification" ErrorMessage="Name is required." Text="*"
                            SetFocusOnError="true" ToolTip="Name is required." ValidationGroup="FloorValidationGroup"></asp:RequiredFieldValidator>
                    </p>
                     <p>
                        <asp:Label ID="MapLabel" runat="server" Text="Map" AssociatedControlID="Map" />
                        <asp:DropDownList runat="server" ID="Map" Width="320px" Enabled="false" />
                        <asp:RequiredFieldValidator ID="MapRequired" runat="server" ControlToValidate="Map"
                            CssClass="failureNotification" ErrorMessage="Select a Map." Text="*"
                            SetFocusOnError="true" InitialValue="-1" ToolTip="select a Map." ValidationGroup="FloorValidationGroup"></asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="FloorIndexLabel" runat="server" Text="Floor Index" AssociatedControlID="FloorIndex" />
                        <asp:TextBox runat="server" ID="FloorIndex" MaxLength="100" CssClass="textEntry" Enabled="false" />
                        <asp:RequiredFieldValidator ID="FloorIndexRequired" runat="server" ControlToValidate="FloorIndex"
                            CssClass="failureNotification" ErrorMessage="Floor cannot be empty." Text="*"
                            SetFocusOnError="true" ToolTip="Floor cannot be empty." ValidationGroup="FloorValidationGroup"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="FloorIndexRange" runat="server" ControlToValidate="FloorIndex"
                            CssClass="failureNotification" Type="Integer" MinimumValue="0"  MaximumValue="32767" ErrorMessage="Please enter numeric value." Text="*"
                            SetFocusOnError="true" ToolTip="Please enter numeric value." ValidationGroup="FloorValidationGroup"></asp:RangeValidator>
                    </p>
                    <p>
                        <asp:Label ID="DescriptionLable" runat="server" Text="Description" AssociatedControlID="Description" />
                        <asp:TextBox runat="server" ID="Description" TextMode="MultiLine" Rows="3" CssClass="textEntryMultiline" />
                    </p>
                </fieldset>
                <p class="saveButton">
                    <asp:Button ID="SaveFloor" runat="server" Width="80px" Text="Save" OnClick="Save_Click"
                        ValidationGroup="FloorValidationGroup" />
                </p>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
